define([
	ELMP.resource('plugins/transform3/lib/babel_standalone_6.26.0_babel.min.js', 'lib'),
	ELMP.resource('plugins/transform3/lib/1.4.0_src_httpVueLoader.js', 'lib'),
], function (Babel, httpVueLoader) {
	return {
		load: function (name, req, onload, config) {
			httpVueLoader.httpRequest(req.toUrl(name) + ".js").then(function (script) {
				onload.fromText(Babel.transform(script, {
					presets: [
						'es2015',
						'stage-3',
					],
					plugins: [
						'transform-es2015-modules-amd',
					],
				}).code);
			});
		},
	};
});
